<html>
<head>
	<link href="<?php echo base_url(); ?>libraries/css/bootstrap.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?php echo base_url(); ?>libraries/js/bootstrap.js"></script>
	<style>
		*{  
		   	margin:0;  
		   	padding:0;  
		}
		body{  
		   	text-align:center;
		}
		#bodyPage{
		   	width:550px;  
		   	margin:0 auto; 
		}
		
		.shadowbox{
			box-shadow: 1px 1px 15px #888888;
		}
		.login{
			margin-top:1%;
			margin-left:26%;
		}
		.TitleLogin{
			margin-top:20%;
		}
		.formLogin{
			margin:20px 20px 20px 20px;
			padding-left:15px;
		}
	</style>
</head>
<body>
	<div id="bodyPage">
        <div class="TitleLogin">
            <h2>Control Panel</h2>           
            <div class="formLogin">
                <table class="shadowbox" border="0" >
                    <tr>
                        <td style="padding-left:8px;padding-right:8px;">
                            <h4>Please Login</h4>
                            <hr>
                            <?php $msg = $this->session->flashdata('error');?>
                            <?php if ($msg):?>
                                <div class="alert alert-error" style="text-align:center">
                                    Maaf, Username atau password salah!
                                </div>
                            <?php endif?>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top:8px;padding-right:100px">
                            
                            <form method="post" action="<?php echo site_url(); ?>login/validate" class="form-horizontal">
                              <div class="control-group">
                                <label class="control-label" for="username" >Username</label>
                                <div class="controls">
                                    <input type="text" name="username" value="<?php echo $this->session->flashdata('username');?>" />
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="password">Password</label>
                                <div class="controls">
                                    <input type="password" name="password"/>
                                </div>
                              </div>
                              <div class="control-group">
                                <div class="controls">
                                    <input type="submit" value="Sign in" class="btn"/>
                                </div>
                              </div>
                            </form>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</body>
</html>